package com.weixin.paleituo.bean;

import android.text.TextUtils;

import com.google.gson.annotations.SerializedName;

import java.io.Serializable;

/**
 * Author yichao
 * Time  2018/3/21 15:15
 * Dest  商品
 */

public class Goods implements Serializable{

    /**
     * goodsName : TCL曲面电视
     * goodsSalenum : 999
     * goodsSerial : 331221321
     * id : 864
     * listUrl : upload/goods_list_img/ca57ff1b-f93a-419d-b46e-51cb1bd94adc.jpg
     * storeId : 91
     * storeName : 智能家居1:1:1
     * storePrice : 4663.00
     *
     */


    private String goodsName;
    private int goodsSalenum;
    private String goodsSerial;
    private int id;
    private String listUrl;
    private int storeId;
    private String storeName;
    private String coupon;
    private String specialSales;
    private String price;

    public String getPrice() {
        return price;
    }

    public void setPrice(String price) {
        this.price = price;
    }

    public double getCoupon() {
        return TextUtils.isEmpty(coupon)?0:Double.valueOf(coupon);
    }

    public void setCoupon(String coupon) {
        this.coupon = coupon;
    }

    public String getSpecialSales() {
        return specialSales;
    }

    public void setSpecialSales(String specialSales) {
        this.specialSales = specialSales;
    }

    public String getGoodsName() {
        return goodsName;
    }

    public void setGoodsName(String goodsName) {
        this.goodsName = goodsName;
    }

    public int getGoodsSalenum() {
        return goodsSalenum;
    }

    public void setGoodsSalenum(int goodsSalenum) {
        this.goodsSalenum = goodsSalenum;
    }

    public String getGoodsSerial() {
        return goodsSerial;
    }

    public void setGoodsSerial(String goodsSerial) {
        this.goodsSerial = goodsSerial;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getListUrl() {
        return listUrl;
    }

    public void setListUrl(String listUrl) {
        this.listUrl = listUrl;
    }

    public int getStoreId() {
        return storeId;
    }

    public void setStoreId(int storeId) {
        this.storeId = storeId;
    }

    public String getStoreName() {
        return storeName;
    }

    public void setStoreName(String storeName) {
        this.storeName = storeName;
    }
}
